# conkyrc-boxes
# arpinux@2012

# settings #############################################################
use_xft yes
xftfont Terminus:size=8
xftalpha 1
override_utf8_locale yes
use_spacer none
short_units yes
text_buffer_size 2048
background yes
update_interval 1
xftalpha 1
total_run_times 0
draw_shades no
default_bar_size 100 10
default_color gray50
own_window yes
own_window_transparent yes
own_window_type override
minimum_size 1004 700
maximum_width 1004
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
gap_x 10
gap_y 10
alignment top_left
if_up_strictness address

# output ###############################################################
TEXT
${image ~/.conky/boxes.png -p 10,40}\
${image ~/.conky/boxes.png -p 210,40}\
${image ~/.conky/boxes.png -p 610,40}\
${image ~/.conky/boxes.png -p 810,40 -s 170x220}\
${image ~/.conky/boxes.png -p 10,380}\
${image ~/.conky/boxes.png -p 410,380 -s 170x210}\
${image ~/.conky/boxes.png -p 610,380 -s 170x230}\
${voffset 55}${goto 40}${font Terminus:size=12}CPU USAGE  ${cpu}%\
${goto 240}RAM USAGE  ${memperc}%\
${goto 640}DISK USAGE ${fs_used_perc /}%\
${goto 840}IBM USAGE$font
${goto 40}--------------------${goto 240}--------------------${goto 640}--------------------${goto 840}--------------------
${goto 40}load: ${loadavg} ${goto 240}mem: ${mem} used ${goto 640}hdd: ${fs_used /} used ${goto 840}temps: hdd ${texeci 60 sudo hddtemp /dev/sda|tail -c6}
${goto 40}freq: ${freq} Mhz${goto 240}     ${memmax} total ${goto 640}     ${fs_free /} free ${goto 840}       cpu ${acpitemp}°C
${goto 640}     ${fs_size /} total ${goto 840}       gpu ${ibm_temps 3}°C
${goto 30}${top cpu 1}% ${top name 1}${goto 230}${top_mem mem 1}% ${top_mem name 1}${goto 640}${fs_bar 15,120}${voffset -15}${goto 840}       bat ${ibm_temps 4}°C
${goto 30}${top cpu 2}% ${top name 2}${goto 230}${top_mem mem 2}% ${top_mem name 2}${goto 640}${goto 840}
${goto 30}${top cpu 3}% ${top name 3}${goto 230}${top_mem mem 3}% ${top_mem name 3}${goto 840}fanspeed: ${ibm_fan} rpm
${goto 30}${top cpu 4}% ${top name 4}${goto 230}${top_mem mem 4}% ${top_mem name 4}${goto 640}read:  ${diskio_read}/s
${goto 30}${top cpu 5}% ${top name 5}${goto 230}${top_mem mem 5}% ${top_mem name 5}${goto 640}write: ${diskio_write}/s${goto 840}power:    ${acpiacadapter}
${goto 30}${top cpu 6}% ${top name 6}${goto 230}${top_mem mem 6}% ${top_mem name 6}${goto 640}${diskiograph_read 15,120}${voffset -15} ${goto 840}battery1: ${battery_percent BAT0}%
${goto 30}${top cpu 7}% ${top name 7}${goto 230}${top_mem mem 7}% ${top_mem name 7}${goto 640}${voffset 5}${diskiograph_write 15,120}${goto 840}${battery_bar 10,120 BAT0}${voffset -20}
${goto 30}${top cpu 8}% ${top name 8}${goto 230}${top_mem mem 8}% ${top_mem name 8}
${goto 30}${top cpu 9}% ${top name 9}${goto 230}${top_mem mem 9}% ${top_mem name 9}${goto 840}battery2: ${if_existing /sys/class/power_supply/BAT2}${battery_percent BAT2}%${else}not present${endif}
${goto 30}${top cpu 10}% ${top name 10}${goto 230}${top_mem mem 10}% ${top_mem name 10}${goto 840}${if_existing /sys/class/power_supply/BAT2}${goto 840}${voffset 5}${battery_bar 10,120 BAT2}${else}${voffset 5}${endif}
${goto 40}${cpugraph 30,120} ${goto 240}${memgraph 30,120}${voffset -50}${goto 640}cdrom: ${if_mounted /media/cdrom0}inside${else}not present${endif}
${goto 640}cfc1:  ${if_mounted /media/cfc1}${fs_used_perc /media/cfc1}% (f:${fs_free /media/cfc1})${else}not mounted${endif}
${goto 640}cfc2:  ${if_mounted /media/cfc2}${fs_used_perc /media/cfc2}% (f:${fs_free /media/cfc2})${else}not mounted${endif}
${goto 640}lacie: ${if_existing /media/LACIE}${fs_used_perc /media/LACIE}% (f:${fs_free /media/LACIE})${else}not mounted${endif}
${goto 640}b4g:   ${if_existing /media/B4G}${fs_used_perc /media/B4G}% (f:${fs_free /media/B4G})${else}not mounted${endif}
${goto 40}processes: ${running_processes}/${processes}${goto 240}swap: ${swapperc}% - ${swap}/${swapmax}${goto 640}hd70:  ${if_existing /media/hd70}${fs_used_perc /media/hd70}% (f:${fs_free /media/hd70})${else}not mounted${endif}

${voffset 90}${goto 40}${font Terminus:size=12}${time %d/%m  %I:%M %P}${goto 440}NET WIRED${if_up eth0} on${else} off${endif}${goto 640}NET WIFI${if_up eth1} on${else} off${endif}$font
${goto 40}--------------------${goto 440}--------------------${goto 640}--------------------
${goto 40}saint:  ${if_gw}${texeci 28800 wget -q http://nominis.cef.fr/ -O saint.html -O - | iconv -f latin1 -t utf8 | sed '1,/Bonne Fête !/d; /Autres Fêtes du Jour/Q;' |  sed '$d' | sed '1i<html>' | sed '4a</html>' | xmlstarlet sel -t -v '//dt/a' | awk 'ORS=NR%6?" ":"\n"'}${else}no infos${endif}${if_up eth0}${goto 440}${addr eth0}${endif}${if_up eth1}${goto 640}${addr eth1}${endif}
${goto 40}meteo:  ${if_gw}${texeci 3600 ~/bin/conkyweather.sh "EUR|FR|K|CARCASSONNE"}${else}no infos${endif}${if_up eth1}${goto 640}${wireless_essid eth1}:  ${wireless_link_qual_perc eth1}%${endif}
${if_up eth0}${goto 440}upload:    ${upspeed eth0}/s${endif}${if_up eth1}${goto 640}upload:   ${upspeed eth1}/s${endif}
${goto 40}uptime: ${uptime_short}${if_up eth0}${goto 440}downpload: ${downspeed eth0}/s${endif}${if_up eth1}${goto 640}download: ${downspeed eth1}/s${endif}
${goto 40}ip:     ${if_gw}${texeci 600 ip.sh}${else}no infos${endif}
${goto 40}host:   ${nodename}${goto 440}${upspeedgraph eth0 40,120}${goto 640}${upspeedgraph eth1 40,120}${voffset -40}
${goto 40}distro: ${texeci 28800 cat /etc/debian_version}
${goto 40}kernel: ${kernel}

${goto 40}wm:     dwm-6.1${goto 440}${downspeedgraph eth0 40,120}${goto 640}${downspeedgraph eth1 40,120}${voffset -40}
${goto 40}gtk:    ${texeci 6000 awk -F'"' '/gtk-theme/ {print $2}' $HOME/.gtkrc-2.0}
${goto 40}icons:  ${texeci 6000 awk -F'"' '/icon-theme/ {print $2}' $HOME/.gtkrc-2.0}
${goto 40}font:   ${texeci 6000 awk -F'"' '/gtk-font-name/ {print $2}' $HOME/.gtkrc-2.0}
${if_up eth1}${goto 640}${wireless_ap eth1}${endif}
${goto 40}debs:       ${texeci 28800 dpkg --get-selections | wc -l}
${goto 40}update(s):  ${if_gw}${texeci 28800 ~/bin/debupdates.sh}${else}no infos${endif}
${goto 40}openTcp(s): ${if_gw}${tcp_portmon 1 65535 count}${else}no infos${endif}
